﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodsManager.aspx.cs" Inherits="GoodsInfo_GoodsManager"
    CodeFileBaseClass="Frame.Pages.ActionInfomationEditBasePage" MasterPageFile="~/MainMaster.master" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Css/web20110913.css" rel="stylesheet" type="text/css" charset="gb2312" />
    <script type="text/javascript" src="../Scripts/ToChineseSpell.js"></script>
    <script type="text/javascript" src="../Scripts/EnterAsTab.js"></script>
    <script language="javascript" type="text/javascript">
        function OnGridFocusedRowChanged() {
            gridView.GetRowValues(gridView.GetFocusedRowIndex(), 'spbm;spmc', OnGetRowValues);
        }
        function OnGetRowValues(values) {
            spbm.SetText(values[0]);
            spmc.SetText(values[1]);
        }
        function ShowContract(control) {
            PPanel.ShowAtElement(control);
        }
        function CbContract(id) {
            ContractPanel.PerformCallback(id);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="MainContent">
    <h1 class="DemoTitle">
        商品信息管理
    </h1>
    <!--部门信息设置-->
    <dx:ASPxPopupControl ID="bmPanel" runat="server" HeaderText="部门信息设置" HeaderStyle-Font-Size="Small"
        Width="600px" CloseAction="CloseButton" Modal="True" PopupHorizontalAlign="WindowCenter"
        PopupVerticalAlign="WindowCenter" ClientInstanceName="bmPanel" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableHotTrack="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle Font-Size="Small"></HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                <table>
                    <tr>
                        <td>
                            商品编码：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtSpbm" runat="server" Width="180px" ClientInstanceName="spbm"
                                Font-Size="Small" ReadOnly="true" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxTextBox>
                        </td>
                        <td>
                            商品名称：
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="170px" ClientInstanceName="spmc"
                                Font-Size="Small" ReadOnly="true" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                            </dx:ASPxTextBox>
                        </td>
                    </tr>
                </table>
                <dx:ASPxCallbackPanel ID="QueryCBPanel" runat="server" OnCallback="QueryCBPanel_Callback"
                    ClientInstanceName="QueryPanel">
                    <PanelCollection>
                        <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                            <dx:ASPxTreeList ID="DxTreelist" runat="server" AutoGenerateColumns="False" ClientInstanceName="QueryTree"
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                Font-Size="10pt" KeyFieldName="bmbm" ParentFieldName="fbmbm" Width="600px">
                                <Columns>
                                    <dx:TreeListTextColumn Caption="部门编号" FieldName="bmbm" ShowInCustomizationForm="True"
                                        Width="150px" VisibleIndex="0">
                                    </dx:TreeListTextColumn>
                                    <dx:TreeListTextColumn Caption="部门名称" FieldName="bmmc" ShowInCustomizationForm="True"
                                        Width="200px" VisibleIndex="1">
                                    </dx:TreeListTextColumn>
                                </Columns>
                                <Settings SuppressOuterGridLines="True" />
                                <SettingsBehavior AllowFocusedNode="True" AutoExpandAllNodes="True" />
                                <Settings SuppressOuterGridLines="True"></Settings>
                                <SettingsBehavior AutoExpandAllNodes="True" AllowFocusedNode="True"></SettingsBehavior>
                                <SettingsPager>
                                    <Summary Text="当前第{0}页，共{1}页，{2}条记录"></Summary>
                                </SettingsPager>
                                <SettingsSelection Enabled="True" Recursive="True" />
                                <SettingsSelection Enabled="True" Recursive="True"></SettingsSelection>
                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/TreeList/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                    <LoadingPanel ImageSpacing="5px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesPager>
                                    <PageNumber ForeColor="#3E4846">
                                    </PageNumber>
                                    <Summary ForeColor="#1E395B">
                                    </Summary>
                                </StylesPager>
                                <StylesEditors ButtonEditCellSpacing="0">
                                </StylesEditors>
                            </dx:ASPxTreeList>
                            <dx:ASPxButton ID="btnSave" runat="server" Text="保存" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                AutoPostBack="False" UseSubmitBehavior="False">
                                <ClientSideEvents Click="function(s,e){QueryPanel.PerformCallback(spbm.GetValue()); }" />
                                <ClientSideEvents Click="function(s,e){QueryPanel.PerformCallback(spbm.GetValue()); }">
                                </ClientSideEvents>
                            </dx:ASPxButton>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxCallbackPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <!--促销信息查看-->
    <dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="PPanel"
        Width="700px" AllowResize="True" HeaderText="促销信息" Font-Size="Small" CloseAction="CloseButton"
        AllowDragging="true" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableHotTrack="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                <dx:ASPxCallbackPanel ID="ContractPanel" ClientInstanceName="ContractPanel" runat="server"
                    Width="100%" OnCallback="ContractPanel_Callback">
                    <PanelCollection>
                        <dx:PanelContent>
                            <div runat="server" id="Detail">
                                <dx:ASPxGridView ID="cxInfo" ClientInstanceName="cxInfo" runat="server" AutoGenerateColumns="False"
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                    KeyFieldName="cxbh" Width="100%">
                                    <Columns>
                                        <dx:GridViewDataTextColumn FieldName="cxbh" ShowInCustomizationForm="True" VisibleIndex="0"
                                            Caption="促销编码">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn FieldName="sm" ShowInCustomizationForm="True" VisibleIndex="1"
                                            Caption="促销说明">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataComboBoxColumn Caption="促销方式" FieldName="cxfs" ShowInCustomizationForm="True"
                                            VisibleIndex="2">
                                            <PropertiesComboBox Spacing="0" ValueType="System.String">
                                                <Items>
                                                    <dx:ListEditItem Text="满减" Value="J" />
                                                    <dx:ListEditItem Text="满送" Value="S" />
                                                    <dx:ListEditItem Text="满减后送" Value="JS" />
                                                </Items>
                                                <Style Font-Size="10pt"></Style>
                                            </PropertiesComboBox>
                                        </dx:GridViewDataComboBoxColumn>
                                        <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="3" Caption="销售金额1"
                                            FieldName="xsje1">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="4" Caption="活动金额1"
                                            FieldName="hdje1">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="5" Caption="上限金额1"
                                            FieldName="sxje1">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="6" Caption="销售金额2"
                                            FieldName="xsje2">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="7" Caption="活动金额2"
                                            FieldName="hdje2">
                                        </dx:GridViewDataTextColumn>
                                        <dx:GridViewDataTextColumn ShowInCustomizationForm="True" VisibleIndex="8" Caption="上限金额2"
                                            FieldName="sxje2">
                                        </dx:GridViewDataTextColumn>
                                    </Columns>
                                    <Templates>
                                        <DetailRow>
                                            <table width="100%" style="font-size: 10pt">
                                                <tr>
                                                    <td align="right">
                                                        开始日期：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel24" runat="server" Text='<%# Eval("qsrq") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td align="right">
                                                        终止日期：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel25" runat="server" Text='<%# Eval("zzrq") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        生效日期：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text='<%# Eval("sxrq") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td align="right">
                                                        取消日期：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text='<%# Eval("qxrq") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        小票说明：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text='<%# Eval("xpsm") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td align="right">
                                                        备注：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text='<%# Eval("bz") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        创建人：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel19" runat="server" Text='<%# Eval("founder") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td align="right">
                                                        创建时间：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel20" runat="server" Text='<%# Eval("fdate") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        最后修改人：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel21" runat="server" Text='<%# Eval("editor") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td align="right">
                                                        修改时间：
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="ASPxLabel22" runat="server" Text='<%# Eval("edate") %>'>
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </DetailRow>
                                    </Templates>
                                    <SettingsDetail ShowDetailRow="True" />
                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanelOnStatusBar>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </Images>
                                    <ImagesFilterControl>
                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                        </LoadingPanel>
                                    </ImagesFilterControl>
                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                        </Header>
                                        <LoadingPanel ImageSpacing="5px">
                                        </LoadingPanel>
                                    </Styles>
                                    <StylesPager>
                                        <PageNumber ForeColor="#3E4846">
                                        </PageNumber>
                                        <Summary ForeColor="#1E395B">
                                        </Summary>
                                    </StylesPager>
                                    <StylesEditors ButtonEditCellSpacing="0">
                                        <ProgressBar Height="21px">
                                        </ProgressBar>
                                    </StylesEditors>
                                </dx:ASPxGridView>
                            </div>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxCallbackPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
            <dx:ASPxButton ID="btnBm" runat="server" Text="设置商品部门信息" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <ClientSideEvents Click="function(s, e) { bmPanel.Show(); }" />
            </dx:ASPxButton>
            <!-- 商品信息-->
            <dx:ASPxRoundPanel ID="MainRoundPanel" runat="server" View="GroupBox" Width="100%"
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                <HeaderStyle>
                    <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                </HeaderStyle>
                <PanelCollection>
                    <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    </dx:PanelContent>
                </PanelCollection>
            </dx:ASPxRoundPanel>
            <dx:ASPxGridView ID="gridView" runat="server" AutoGenerateColumns="False" ClientInstanceName="gridView"
                KeyFieldName="spbm" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                CssPostfix="Office2010Blue" EnableSelection="false" EnableCallBacks="False" Width="100%"
                DataSourceID="LSMDSourceMain" OnCellEditorInitialize="gridView_CellEditorInitialize">
                <SettingsBehavior AllowFocusedRow="True" />
                <ClientSideEvents FocusedRowChanged="function(s, e) { OnGridFocusedRowChanged(); }" />
                <SettingsEditing EditFormColumnCount="2" Mode="PopupEditForm" PopupEditFormModal="true"
                    PopupEditFormHorizontalAlign="WindowCenter" PopupEditFormVerticalAlign="WindowCenter" />
                <Columns>
                    <dx:GridViewDataTextColumn Caption="商品编码" FieldName="spbm" Name="t_spbm" VisibleIndex="0"
                        Visible="false" ReadOnly="true">
                        <PropertiesTextEdit MaxLength="20" Native="true" Width="200px" Style-Font-Size="10pt">
                            <ValidationSettings CausesValidation="true">
                                <RequiredField IsRequired="true" ErrorText="商品编码不可为空！"></RequiredField>
                            </ValidationSettings>
                            <Style Font-Size="10pt"></Style>
                        </PropertiesTextEdit>
                        <EditFormSettings CaptionLocation="Near" Visible="True" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="商品名称" FieldName="spmc" Name="t_spmc" VisibleIndex="1">
                        <PropertiesTextEdit MaxLength="10" Native="true" Width="200px" Style-Font-Size="10pt">
                            <ValidationSettings CausesValidation="true">
                                <RequiredField IsRequired="true" ErrorText="商品名称不可为空！"></RequiredField>
                            </ValidationSettings>
                            <Style Font-Size="10pt"></Style>
                        </PropertiesTextEdit>
                        <EditFormSettings CaptionLocation="Near" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="商品简称" FieldName="spjc" Name="t_spjc" VisibleIndex="2"
                        Visible="false">
                        <PropertiesTextEdit MaxLength="10" Native="true" Width="200px" Style-Font-Size="10pt">
                            <Style Font-Size="10pt"></Style>
                        </PropertiesTextEdit>
                        <EditFormSettings CaptionLocation="Near" Visible="True" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="助记码" FieldName="zjm" Name="t_zjm" VisibleIndex="3">
                        <PropertiesTextEdit Native="true" Width="200px" Style-Font-Size="10pt" MaxLength="10">
                            <ValidationSettings CausesValidation="true">
                            </ValidationSettings>
                            <Style Font-Size="10pt"></Style>
                        </PropertiesTextEdit>
                        <EditFormSettings CaptionLocation="Near" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataComboBoxColumn Caption="商品性质" FieldName="spxz" Name="t_spxz" VisibleIndex="4">
                        <PropertiesComboBox Spacing="0" ValueType="System.String" Width="200px" Style-Font-Size="10pt">
                            <Items>
                                <dx:ListEditItem Text="专柜商品" Value="Z" />
                                <dx:ListEditItem Text="自营商品" Value="D" />
                            </Items>
                            <Style Font-Size="10pt"></Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" Visible="False" />
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn Caption="部门" FieldName="bmbm" Name="t_bmbm" VisibleIndex="5">
                        <PropertiesComboBox Spacing="0" ValueType="System.String" Width="200px" Style-Font-Size="10pt">
                            <Style Font-Size="10pt"></Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" Visible="False" />
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn Caption="品牌" FieldName="ppbm" Name="t_ppbm" VisibleIndex="6">
                        <PropertiesComboBox Spacing="0" ValueType="System.String" Width="200px" Style-Font-Size="10pt"
                            IncrementalFilteringMode="Contains">
                            <Style Font-Size="10pt"></Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" />
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn Caption="供应商" FieldName="csbm" Name="t_csbm" VisibleIndex="7">
                        <PropertiesComboBox Spacing="0" ValueType="System.String" Width="200px" Style-Font-Size="10pt"
                            IncrementalFilteringMode="Contains">
                            <Style Font-Size="10pt"></Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" />
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn Caption="商品类型" FieldName="splx" Name="t_splx" VisibleIndex="8">
                        <PropertiesComboBox Spacing="0" ValueType="System.String" Width="200px" Style-Font-Size="10pt">
                            <Items>
                                <dx:ListEditItem Text="活动商品" Value="Y" />
                                <dx:ListEditItem Text="正价商品" Value="N" />
                                <dx:ListEditItem Text="内购商品" Value="G" />
                            </Items>
                            <Style Font-Size="10pt"></Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" />
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn Caption="进项税率" FieldName="spsl" Name="t_spsl" VisibleIndex="9">
                        <PropertiesComboBox DropDownStyle="DropDown" Spacing="0" ValueType="System.String"
                            Width="200px">
                            <Items>
                                <dx:ListEditItem Text="0" Value="0" />
                                <dx:ListEditItem Text="10" Value="10" />
                                <dx:ListEditItem Text="13" Value="13" />
                                <dx:ListEditItem Text="17" Value="17" Selected="true" />
                            </Items>
                            <Style Font-Size="10pt"></Style>
                            <ValidationSettings>
                                <RegularExpression ValidationExpression="^\+?((100(.0+)*)|([1-9]?[0-9])(\.\d+)*)$"
                                    ErrorText="扣率不能大于100！" />
                            </ValidationSettings>
                            <Style Font-Size="10pt">
                                
                            </Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" Visible="True" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn Caption="销项税率" FieldName="xxsl" Name="t_xxsl" VisibleIndex="10">
                        <PropertiesComboBox DropDownStyle="DropDown" Spacing="0" ValueType="System.String"
                            Width="200px">
                            <Items>
                                <dx:ListEditItem Text="0" Value="0" />
                                <dx:ListEditItem Text="10" Value="10" />
                                <dx:ListEditItem Text="13" Value="13" />
                                <dx:ListEditItem Text="17" Value="17" Selected="true" />
                            </Items>
                            <ValidationSettings>
                                <RegularExpression ValidationExpression="^\+?((100(.0+)*)|([1-9]?[0-9])(\.\d+)*)$"
                                    ErrorText="扣率不能大于100！" />
                            </ValidationSettings>
                            <Style Font-Size="10pt">
                                
                            </Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" Visible="True" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataComboBoxColumn Caption="活动标记" FieldName="hdbz" Name="t_hdbz" VisibleIndex="11">
                        <PropertiesComboBox Width="200px" Style-Font-Size="10pt" ValueType="System.Char"
                            Spacing="0">
                            <Items>
                                <dx:ListEditItem Text="活动" Value="A" ImageUrl="../Images/icon/A.png" />
                                <dx:ListEditItem Text="暂停" Value="P" ImageUrl="../Images/icon/Z.png" />
                            </Items>
                            <Style Font-Size="10pt"></Style>
                        </PropertiesComboBox>
                        <EditFormSettings CaptionLocation="Near" />
                        <CellStyle HorizontalAlign="Center">
                        </CellStyle>
                    </dx:GridViewDataComboBoxColumn>
                    <dx:GridViewDataMemoColumn Caption="备注" FieldName="bz" Name="t_bz" VisibleIndex="12"
                        Visible="false">
                        <PropertiesMemoEdit Width="550px" Height="50px" Style-Font-Size="10pt">
                            <Style Font-Size="10pt"></Style>
                        </PropertiesMemoEdit>
                        <EditFormSettings CaptionLocation="Near" ColumnSpan="3" Visible="True" />
                    </dx:GridViewDataMemoColumn>
                    <%--   <dx:GridViewDataComboBoxColumn Caption="促销标记" FieldName="flag_cx" VisibleIndex="13">
                        <PropertiesComboBox Spacing="0" ValueType="System.String">
                            <Items>
                                <dx:ListEditItem Text="是" Value="Y" ImageUrl="../Images/icon/A.png" />
                                <dx:ListEditItem Text="否" Value="N" ImageUrl="../Images/icon/Z.png" />
                            </Items>
                            <Style Font-Size="10pt"></Style>
                        </PropertiesComboBox>
                        <EditFormSettings Visible="False" />
                    </dx:GridViewDataComboBoxColumn>--%>
                    <dx:GridViewDataTextColumn Caption="生效促销编号" FieldName="cxbh" Name="t_cxbh" VisibleIndex="13">
                        <EditFormSettings CaptionLocation="Near" Visible="False"></EditFormSettings>
                        <DataItemTemplate>
                            <%#
                        Eval("cxbh") == null ? "无" : "<a href=\"javascript:CbContract('" + Eval("cxbh") + "');\" onclick='javascript:ShowContract(this)'> " + Eval("cxbh") + "</a>"
                            %>
                        </DataItemTemplate>
                        <EditFormSettings Visible="False" />
                    </dx:GridViewDataTextColumn>
                </Columns>
                <Templates>
                    <DetailRow>
                        <table width="100%" style="font-size: 10pt">
                            <tr>
                                <td align="left">
                                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="商品详细信息" Font-Bold="true" Font-Size="Large"
                                        Font-Names="微软雅黑">
                                    </dx:ASPxLabel>
                                </td>
                                <td colspan="3">
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    商品编码：
                                </td>
                                <td>
                                    <dx:ASPxLabel ID="ASPxLabel27" runat="server" Text='<%# Eval("spbm") %>'>
                                    </dx:ASPxLabel>
                                </td>
                                <td align="right">
                                    商品简称：
                                </td>
                                <td>
                                    <dx:ASPxLabel ID="ASPxLabel26" runat="server" Text='<%# Eval("spjc") %>'>
                                    </dx:ASPxLabel>
                                </td>
                                <%--<tr>
                                    <td align="right">
                                        进项税率：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel24" runat="server" Text='<%# Eval("spsl") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        销项税率：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel25" runat="server" Text='<%# Eval("xxsl") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>--%>
                                <tr>
                                    <td align="right">
                                        创建人：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel19" runat="server" Text='<%# Eval("founder") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        创建时间：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel20" runat="server" Text='<%# Eval("fdate") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        最后修改人：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel21" runat="server" Text='<%# Eval("editor") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        修改时间：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel22" runat="server" Text='<%# Eval("edate") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        备注：
                                    </td>
                                    <td colspan="3">
                                        <dx:ASPxLabel ID="ASPxLabel23" runat="server" Text='<%# Eval("bz") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left">
                                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Text="商品销售情况" Font-Bold="true" Font-Size="Large"
                                            Font-Names="微软雅黑">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td colspan="3">
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        起始经营日：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel3" runat="server" Text='<%# Eval("jyrq") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        累计经营日：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text='<%# Eval("ljrq") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        累计销售量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text='<%# Eval("ljxl") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        累计销售金额：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text='<%# Eval("ljje") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        平均售价：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text='<%# Eval("pjsj") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        最近销售日期：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text='<%# Eval("zjrq") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        日均销量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel9" runat="server" Text='<%# Eval("rjxl") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        最近销售数量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel10" runat="server" Text='<%# Eval("zjxl") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        最高单日销量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel11" runat="server" Text='<%# Eval("zgxl") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        最近售价：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel12" runat="server" Text='<%# Eval("zjsj") %>'>
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        近3天销售数量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel13" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        本周销售数量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel14" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        近7天销售数量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel15" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        本月销售数量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel16" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        近30天销售数量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel17" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                    <td align="right">
                                        本年销售数量：
                                    </td>
                                    <td>
                                        <dx:ASPxLabel ID="ASPxLabel18" runat="server">
                                        </dx:ASPxLabel>
                                    </td>
                                </tr>
                        </table>
                    </DetailRow>
                </Templates>
                <Settings ShowFilterRow="True" />
                <SettingsDetail ShowDetailRow="True" />
                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                    </LoadingPanelOnStatusBar>
                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                    </LoadingPanel>
                </Images>
                <ImagesFilterControl>
                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                    </LoadingPanel>
                </ImagesFilterControl>
                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                    </Header>
                    <LoadingPanel ImageSpacing="5px">
                    </LoadingPanel>
                </Styles>
                <StylesPager>
                    <PageNumber ForeColor="#3E4846">
                    </PageNumber>
                    <Summary ForeColor="#1E395B">
                    </Summary>
                </StylesPager>
                <StylesEditors ButtonEditCellSpacing="0">
                    <ProgressBar Height="21px">
                    </ProgressBar>
                </StylesEditors>
            </dx:ASPxGridView>
            <dx:LinqServerModeDataSource ID="LSMDSourceMain" runat="server" ContextTypeName="DAL.DataClassesDataContext"
                EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="css_spjbxx"
                OnInserting="LSMDSourceMain_Inserting" OnUpdating="LSMDSourceMain_Updating" />
        </div>
    </div>
</asp:Content>
